#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int a, b = 0, er = 0;
    scanf("%d", &a);
    double c = 0, d = a * 1.0;
    int w[10000];
    for (int i = 0; i < a; i++)
    {
        scanf("%d", &w[i]);
    }
    for (int i = 0; i < a; i++)
    {
        if (w[i] < 0)
        {
            d--; b++; continue;
        }
        c += w[i];
        if (w[i] == 0)
            d--;
    }
    if (d == 0)
        printf("%d 0.0", b);
    else
        printf("%d %.1f", b, c / d);
    return 0;
}